package com.erick.wave.framework.tools;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        System.out.println("12%12 "+12%12);
        System.out.println("12%11 "+12%11);
        System.out.println("12%10 "+12%10);
        System.out.println("12%9 "+12%9);
        System.out.println("12%8 "+12%8);
        System.out.println("12%7 "+12%7);
        System.out.println("12%6 "+12%6);
        
        System.out.println("12%5 "+12%5);
        System.out.println("12%4 "+12%4);
        System.out.println("12%3 "+12%3);
        System.out.println("12%2 "+12%2);
        System.out.println("12%1 "+12%1);
        
/*        for(int i=1;i<=10;i++) {
        	System.out.println("=== "+recursion(i));
        }*/
        System.out.println("=== "+recursion(10));
    }
    
    public  static int  recursion(int number) {
    	int i=0;
    	if(number==1) {
    		i=1;
    		return i ;
    	} else {
    		i= (number)+recursion(number-1);
    		//number--;
    		return i;
    	}
    	
    }
    
}
